import { defineStore } from "pinia";

export const useUserStore = defineStore("userInfo", {
  state: () => ({
    user:null,
    app: null,
  }),
  getters: {
    getUser() {
      return this?.user;
    },
    getApp() {
      return this?.app;
    },
  },
  actions: {
    setUserInfo(info) {
      this.user = info;
    },
    setApp(app) {
      this.app = app;
    },
  },
});
